package com.example.dao;

import com.example.entity.People;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.neo4j.repository.query.Query;

/**
 *
 */
public interface PeopleRepository extends Neo4jRepository<People, Long> {
    @Query("MATCH (p:People) WHERE p.name = $name RETURN p limit 1")
    People findByName(String name);
}
